using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
using Domain.Model.Entity;


namespace Domain.Model.Map
{


    public class SYSMenuMap : ClassMapping<SYSMenu>
    {

        public SYSMenuMap()
        {
            Table("SYS_Menu");
            Schema("dbo");
            Lazy(true);
            Id(x => x.MenuID, map => { map.Column("Menu_ID"); map.Generator(Generators.Assigned); });
            Property(x => x.MenuName, map => map.Column("Menu_Name"));
            Property(x => x.MenuCode, map => map.Column("Menu_Code"));
            Property(x => x.MenuParentID, map => map.Column("Menu_ParentID"));
            Property(x => x.MenuLevel, map => map.Column("Menu_Level"));
            Property(x => x.MenuSort, map => map.Column("Menu_Sort"));
            Property(x => x.MenuCreateDate, map => map.Column("Menu_CreateDate"));
            Property(x => x.MenuState, map => map.Column("Menu_State"));
        }
    }
}
